package cn.itsource.pet.controller;

import cn.itsource.basic.util.PageList;
import cn.itsource.pet.domain.PetType;
import cn.itsource.pet.query.PetTypeQuery;
import cn.itsource.pet.service.IPetTypeService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 宠物类型控制器
 */
@RestController
@RequestMapping("/petType")
@Api(tags = "宠物类型管理", description = "宠物类型操作接口")
public class PetTypeController {

    @Autowired
    private IPetTypeService petTypeService;


    /**
     * 查询所有
     */
    @GetMapping("/findType")
    public List<PetType> findType(){
        //查询分页数据
        return petTypeService.findType();
    }

   
}
